home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-06-16 | 2.9 KB | 69 lines | [TEXT/ttxt] |
- SCSI Samples
- Copyright © 1994, Apple Computer Inc. All Rights Reserved.
-
- ••• ••• •••
- These samples use a preliminary version of scsi.h that is
- close to, but not completely, final. When the final Universal
- Header version of scsi.h is released, you should replace
- references to
- #include "scsi.h"
- with
- #include <scsi.h>
- and may to make other small edits in all of the samples.
- ••• ••• •••
-
- This is a collection of samples that illustrate programming
- the original (Inside Mac-IV) and asynchronous SCSI Managers.
-
- These samples were written over a number of months to
- illustrate issues and solve specific developer problems. They
- do not provide a good illustration of Macintosh application
- design. In some samples, the actual human interface is minimal
- or non-existant, as the sample is only intended to illustrate
- a programming issue that would be obscured by attention
- to human-interface considerations.
-
- As of this writing, SCSI Manager 4.3 is still under development,
- and you should expect to have to change the code slightly to
- track changes in <scsi.h>.
-
- Also, while the samples have been compiled under several
- programming environments (MPW 3.3.2, MetroWerks DR3, and
- Think 7.0) there may be subtle differences between the various
- environments that were not discovered during testing.
-
- As of this writing, all modules were tested under Think C
- 7.0 (except for the sample disk driver, which was compiled
- under MPW 3.3.2). They were checked using the SCSI Manager
- 4.3f1 extension released with System 7.5b2. They have been
- briefly tested using MPW 3.3.2 and MetroWerks DR3.
-
- The following samples are provided:
-
- • SCSI Async Sample - demonstrates fully asynchronous
- physical-block I/O to a SCSI device from an application.
- This can be used as the basis for a drive test utility.
- • SCSI DriveID Sample - demonstrates the relationship
- between volumes, drives, drivers and devices. The
- subroutines may be useful to utility program writers.
- • SCSI Driver Example - This is a sample device driver that
- supports the original and asynchronous SCSI Manager. It
- should not be used for production, but may be useful in
- organizing a third-party SCSI device driver.
- • SCSI Find Devices - This contains a subroutine that greatly
- simplifies iterating over all connected SCSI devices, along
- with a very small main program that illustrates its usage.
- • SCSI Inquiry Samples - These are three very simple samples
- that were written to illustrate bare-bones SCSI Manager
- programming. They are only useful as an introduction to
- the SCSI Manager(s), but are not greatly useful.
- • SCSI Simple Sample - This is the core of a utility that
- executes SCSI commands, and may be useful for exploring
- SCSI devices. Unfortunately, it is no longer very simple.
- • SCSI VBL Sample - This illustrates executing a SCSI
- command from a VBL.
-
- Written by Martin Minow, MACDTS.
- minow@apple.com
- AppleLink: MINOW, DEVSUPPORT
- .